home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 2 / Meeting Pearls Vol. II (1995)(GTI - Schatztruhe)[!].iso / Pearls / dev / GUI / BGUI / include / libraries / bgui.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-06  |  46.8 KB  |  1,167 lines

  1. #ifndef LIBRARIES_BGUI_H
  2. #define LIBRARIES_BGUI_H
  3. /*
  4. **      $VER: libraries/bgui.h 37.36 (06.10.94)
  5. **      C header for the bgui.library.
  6. **
  7. **      bgui.library structures and constants.
  8. **
  9. **      (C) Copyright 1993-1994 Jaba Development.
  10. **      (C) Copyright 1993-1994 Jan van den Baard.
  11. **      All Rights Reserved.
  12. **/
  13.  
  14. #ifndef EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif /* EXEC_TYPES_H */
  17.  
  18. #ifndef INTUITION_CLASSES_H
  19. #include <intuition/classes.h>
  20. #endif /* INTUITION_CLASSES_H */
  21.  
  22. #ifndef INTUITION_CLASSUSR_H
  23. #include <intuition/classusr.h>
  24. #endif /* INTUITION_CLASSUSR_H */
  25.  
  26. #ifndef INTUITION_IMAGECLASS_H
  27. #include <intuition/imageclass.h>
  28. #endif /* INTUITION_IMAGECLASS_H */
  29.  
  30. #ifndef INTUITION_GADGETCLASS_H
  31. #include <intuition/gadgetclass.h>
  32. #endif /* INTUITION_GADGETCLASS_H */
  33.  
  34. #ifndef INTUITION_CGHOOKS_H
  35. #include <intuition/cghooks.h>
  36. #endif /* INTUITION_CGHOOKS_H */
  37.  
  38. #ifndef LIBRARIES_COMMODITIES_H
  39. #include <libraries/commodities.h>
  40. #endif /* LIBRARIES_COMMODITIES_H */
  41.  
  42. #ifndef LIBRARIES_GADTOOLS_H
  43. #include <libraries/gadtools.h>
  44. #endif /* LIBRARIES_GADTOOLS_H */
  45.  
  46. /*****************************************************************************
  47.  *
  48.  *      The attribute definitions in this header are all followed by
  49.  *      a small comment. This comment can contain the following things:
  50.  *
  51.  *      I        - Attribute can be set with OM_NEW
  52.  *      S        - Attribute can be set with OM_SET
  53.  *      G        - Attribute can be read with OM_GET
  54.  *      N        - Setting this attribute triggers a notification.
  55.  *      U        - Attribute can be set with OM_UPDATE.
  56.  *      PRIVATE! - Like it says: Private. Do not use this attribute.
  57.  */
  58.  
  59. /*****************************************************************************
  60.  *
  61.  *      Miscellanious library definitions.
  62.  */
  63. #define BGUINAME                        "bgui.library"
  64. #define BGUIVERSION                     37
  65.  
  66. /*****************************************************************************
  67.  *
  68.  *      BGUI_GetClassPtr() and BGUI_NewObjectA() class ID's.
  69.  */
  70. #define BGUI_LABEL_IMAGE                (0L)
  71. #define BGUI_FRAME_IMAGE                (1L)
  72. #define BGUI_VECTOR_IMAGE               (2L)
  73. /* 3 until 10 reserved. */
  74. #define BGUI_BASE_GADGET                (11L)
  75. #define BGUI_GROUP_GADGET               (12L)
  76. #define BGUI_BUTTON_GADGET              (13L)
  77. #define BGUI_CYCLE_GADGET               (14L)
  78. #define BGUI_CHECKBOX_GADGET            (15L)
  79. #define BGUI_INFO_GADGET                (16L)
  80. #define BGUI_STRING_GADGET              (17L)
  81. #define BGUI_PROP_GADGET                (18L)
  82. #define BGUI_INDICATOR_GADGET           (19L)
  83.  
  84. /* 20 is reserved. */
  85.  
  86. #define BGUI_PROGRESS_GADGET            (21L)
  87. #define BGUI_SLIDER_GADGET              (22L)
  88. #define BGUI_LISTVIEW_GADGET            (23L)
  89. #define BGUI_MX_GADGET                  (24L)
  90. #define BGUI_PAGE_GADGET                (25L)
  91. #define BGUI_EXTERNAL_GADGET            (26L)
  92. #define BGUI_SEPERATOR_GADGET           (27L)
  93.  
  94. /* 27 until 39 reserved. */
  95. #define BGUI_WINDOW_OBJECT              (40L)
  96. #define BGUI_FILEREQ_OBJECT             (41L)
  97. #define BGUI_COMMODITY_OBJECT           (42L)
  98.  
  99. /*****************************************************************************
  100.  *
  101.  *      BGUI requester definitions.
  102.  */
  103. struct bguiRequest {
  104.         ULONG            br_Flags;              /* See below.               */
  105.         STRPTR           br_Title;              /* Requester title.         */
  106.         STRPTR           br_GadgetFormat;       /* Gadget labels.           */
  107.         STRPTR           br_TextFormat;         /* Body text format.        */
  108.         UWORD            br_ReqPos;             /* Requester position.      */
  109.         struct TextAttr *br_TextAttr;           /* Requester font.          */
  110.         ULONG            br_Reserved[ 6 ];      /* Set to NULL!             */
  111. };
  112.  
  113. #define BREQF_CENTERWINDOW      (1<<0) /* Center requester on the window.   */
  114. #define BREQF_LOCKWINDOW        (1<<1) /* Lock the parent window.           */
  115. #define BREQF_NO_PATTERN        (1<<2) /* Don't use back-fill pattern.      */
  116. #define BREQF_XEN_BUTTONS       (1<<3) /* Use XEN style buttons.            */
  117.  
  118. /*****************************************************************************
  119.  *
  120.  *      Tag and method bases.
  121.  */
  122. #define BGUI_TB                         (TAG_USER+0xF0000)
  123. #define BGUI_MB                         (0xF0000)
  124.  
  125. /*****************************************************************************
  126.  *
  127.  *      "frameclass" - BOOPSI framing image.
  128.  */
  129. #define FRM_Type                        (BGUI_TB+1)     /* ISG-- */
  130. #define FRM_CustomHook                  (BGUI_TB+2)     /* ISG-- */
  131. #define FRM_BackFillHook                (BGUI_TB+3)     /* ISG-- */
  132. #define FRM_Title                       (BGUI_TB+4)     /* ISG-- */
  133. #define FRM_TextAttr                    (BGUI_TB+5)     /* ISG-- */
  134. #define FRM_Flags                       (BGUI_TB+6)     /* ISG-- */
  135. #define FRM_FrameWidth                  (BGUI_TB+7)     /* --G-- */
  136. #define FRM_FrameHeight                 (BGUI_TB+8)     /* --G-- */
  137. #define FRM_BackFill                    (BGUI_TB+9)     /* ISG-- */
  138. #define FRM_EdgesOnly                   (BGUI_TB+10)    /* ISG-- */
  139. #define FRM_Recessed                    (BGUI_TB+11)    /* ISG-- */
  140. #define FRM_CenterTitle                 (BGUI_TB+12)    /* ISG-- */
  141. #define FRM_HighlightTitle              (BGUI_TB+13)    /* ISG-- */
  142. #define FRM_ThinFrame                   (BGUI_TB+14)    /* ISG-- */
  143.  
  144. /* BGUI_TB+15 until BGUI_TB+80 reserved */
  145.  
  146. /* Back fill types */
  147. #define STANDARD_FILL                   (0L)
  148. #define SHINE_RASTER                    (1L)
  149. #define SHADOW_RASTER                   (2L)
  150. #define SHINE_SHADOW_RASTER             (3L)
  151. #define FILL_RASTER                     (4L)
  152. #define SHINE_FILL_RASTER               (5L)
  153. #define SHADOW_FILL_RASTER              (6L)
  154. #define SHINE_BLOCK                     (7L)
  155. #define SHADOW_BLOCK                    (8L)
  156.  
  157. /* Flags */
  158. #define FRF_EDGES_ONLY          (1<<0)
  159. #define FRF_RECESSED            (1<<1)
  160. #define FRF_CENTER_TITLE        (1<<2)
  161. #define FRF_HIGHLIGHT_TITLE     (1<<3)
  162. #define FRF_THIN_FRAME          (1<<4)
  163.  
  164. /* Frame types */
  165. #define FRTYPE_CUSTOM           (0L)
  166. #define FRTYPE_BUTTON           (1L)
  167. #define FRTYPE_RIDGE            (2L)
  168. #define FRTYPE_DROPBOX          (3L)
  169. #define FRTYPE_NEXT             (4L)
  170. #define FRTYPE_RADIOBUTTON      (5L)
  171. #define FRTYPE_XEN_BUTTON       (6L)
  172.  
  173. /*
  174.  *      FRM_RENDER:
  175.  *
  176.  *      The message packet sent to both the FRM_CustomHook
  177.  *      and FRM_BackFillHook routines. Note that this
  178.  *      structure is READ-ONLY!
  179.  *
  180.  *      The hook is called as follows:
  181.  *
  182.  *              rc = hookFunc( REG(A0) struct Hook         *hook,
  183.  *                             REG(A2) Object              *image_object,
  184.  *                             REG(A1) struct FrameDrawMsg *fdraw );
  185.  */
  186. #define FRM_RENDER              (1L) /* Render yourself           */
  187.  
  188. struct FrameDrawMsg {
  189.         ULONG             fdm_MethodID;   /* FRM_RENDER                   */
  190.         struct RastPort  *fdm_RPort;      /* RastPort ready for rendering */
  191.         struct DrawInfo  *fdm_DrawInfo;   /* All you need to render       */
  192.         struct Rectangle *fdm_Bounds;     /* Rendering bounds.            */
  193.         UWORD             fdm_State;      /* See "intuition/imageclass.h" */
  194. };
  195.  
  196. /*
  197.  *      FRM_THICKNESS:
  198.  *
  199.  *      The message packet sent to the FRM_Custom hook.
  200.  *
  201.  *      The hook is called as follows:
  202.  *
  203.  *      rc = hookFunc( REG(A0) struct Hook              *hook,
  204.  *                     REG(A2) Object                   *image_object,
  205.  *                     REG(A1) struct ThicknessMsg      *thick );
  206.  */
  207. #define FRM_THICKNESS           (2L) /* Give the frame thickness. */
  208.  
  209. struct ThicknessMsg {
  210.         ULONG            tm_MethodID;     /* FRM_THICKNESS                */
  211.         struct {
  212.                 UBYTE   *Horizontal;      /* Storage for horizontal       */
  213.                 UBYTE   *Vertical;        /* Storage for vertical         */
  214.         }                tm_Thickness;
  215. };
  216.  
  217. /* Possible hook return codes. */
  218. #define FRC_OK                  (0L) /* OK            */
  219. #define FRC_UNKNOWN             (1L) /* Unknow method */
  220.  
  221. /*****************************************************************************
  222.  *
  223.  *      "labelclass" - BOOPSI labeling image.
  224.  */
  225. #define LAB_TextAttr                    (BGUI_TB+81)    /* ISG-- */
  226. #define LAB_Style                       (BGUI_TB+82)    /* ISG-- */
  227. #define LAB_Underscore                  (BGUI_TB+83)    /* ISG-- */
  228. #define LAB_Place                       (BGUI_TB+84)    /* ISG-- */
  229. #define LAB_Label                       (BGUI_TB+85)    /* ISG-- */
  230. #define LAB_Flags                       (BGUI_TB+86)    /* ISG-- */
  231. #define LAB_Highlight                   (BGUI_TB+87)    /* ISG-- */
  232. #define LAB_HighUScore                  (BGUI_TB+88)    /* ISG-- */
  233.  
  234. /* BGUI_TB+89 until BGUI_TB+160 reserved */
  235.  
  236. /* Flags */
  237. #define LABF_HIGHLIGHT          (1<<0) /* Highlight label        */
  238. #define LABF_HIGH_USCORE        (1<<1) /* Highlight underscoring */
  239.  
  240. /* Label placement */
  241. #define PLACE_IN                (0L)
  242. #define PLACE_LEFT              (1L)
  243. #define PLACE_RIGHT             (2L)
  244. #define PLACE_ABOVE             (3L)
  245. #define PLACE_BELOW             (4L)
  246.  
  247. /* New methods */
  248. /*
  249.  *      The IM_EXTENT method is used to find out how many
  250.  *      pixels the label extents the releative hitbox in
  251.  *      either direction. Normally this method is called
  252.  *      by the baseclass.
  253.  */
  254. #define IM_EXTENT                       (BGUI_MB+1)
  255.  
  256. struct impExtent {
  257.         ULONG                   MethodID;       /* IM_EXTENT                */
  258.         struct RastPort        *impe_RPort;     /* RastPort                 */
  259.         struct IBox            *impe_Extent;    /* Storage for extentions.  */
  260.         struct {
  261.                 UWORD          *Width;          /* Storage width in pixels  */
  262.                 UWORD          *Height;         /* Storage height in pixels */
  263.         }                       impe_LabelSize;
  264.         UWORD                   impe_Flags;     /* See below.               */
  265. };
  266.  
  267. #define EXTF_MAXIMUM            (1<<0) /* Request maximum extensions. */
  268.  
  269. /* BGUI_MB+2 until BGUI_MB+40 reserved */
  270.  
  271. /*****************************************************************************
  272.  *
  273.  *      "vectorclass" - BOOPSI scalable vector image.
  274.  *
  275.  *      Based on an idea found in the ObjectiveGadTools.library
  276.  *      by Davide Massarenti.
  277.  */
  278. #define VIT_VectorArray                 (BGUI_TB+161)   /* ISG-- */
  279. #define VIT_BuiltIn                     (BGUI_TB+162)   /* ISG-- */
  280. #define VIT_Pen                         (BGUI_TB+163)   /* ISG-- */
  281. #define VIT_DriPen                      (BGUI_TB+164)   /* ISG-- */
  282.  
  283. /* BGUI_TB+165 until BGUI_TB+240 reserved. */
  284.  
  285. /*
  286.  *      Command structure which can contain
  287.  *      coordinates, data and command flags.
  288.  */
  289. struct VectorItem {
  290.         WORD                    vi_x;           /* X coordinate or data */
  291.         WORD                    vi_y;           /* Y coordinate         */
  292.         ULONG                   vi_Flags;       /* See below            */
  293. };
  294.  
  295. /* Flags */
  296. #define VIF_MOVE                (1<<0)  /* Move to vc_x, vc_y               */
  297. #define VIF_DRAW                (1<<1)  /* Draw to vc_x, vc_y               */
  298. #define VIF_AREASTART           (1<<2)  /* Start AreaFill at vc_x, vc_y     */
  299. #define VIF_AREAEND             (1<<3)  /* End AreaFill at vc_x, vc_y       */
  300. #define VIF_XRELRIGHT           (1<<4)  /* vc_x relative to right edge      */
  301. #define VIF_YRELBOTTOM          (1<<5)  /* vc_y relative to bottom edge     */
  302. #define VIF_SHADOWPEN           (1<<6)  /* switch to SHADOWPEN, Move/Draw   */
  303. #define VIF_SHINEPEN            (1<<7)  /* switch to SHINEPEN, Move/Draw    */
  304. #define VIF_FILLPEN             (1<<8)  /* switch to FILLPEN, Move/Draw     */
  305. #define VIF_TEXTPEN             (1<<9)  /* switch to TEXTPEN, Move/Draw     */
  306. #define VIF_COLOR               (1<<10) /* switch to color in vc_x          */
  307. #define VIF_LASTITEM            (1<<11) /* last element of the element list */
  308. #define VIF_SCALE               (1<<12) /* X & Y are design width & height  */
  309. #define VIF_DRIPEN              (1<<13) /* switch to dripen vc_x            */
  310. #define VIF_AOLPEN              (1<<14) /* set area outline pen vc_x        */
  311. #define VIF_AOLDRIPEN           (1<<15) /* set area outline dripen vc_x     */
  312. #define VIF_ENDOPEN             (1<<16) /* end area outline pen             */
  313.  
  314. /* Built-in images. */
  315. #define BUILTIN_GETPATH         (1L)
  316. #define BUILTIN_GETFILE         (2L)
  317. #define BUILTIN_CHECKMARK       (3L)
  318. #define BUILTIN_POPUP           (4L)
  319. #define BUILTIN_ARROW_UP        (5L)
  320. #define BUILTIN_ARROW_DOWN      (6L)
  321. #define BUILTIN_ARROW_LEFT      (7L)
  322. #define BUILTIN_ARROW_RIGHT     (8L)
  323.  
  324. /* Design width and heights of the built-in images. */
  325. #define GETPATH_WIDTH           20
  326. #define GETPATH_HEIGHT          14
  327. #define GETFILE_WIDTH           20
  328. #define GETFILE_HEIGHT          14
  329. #define CHECKMARK_WIDTH         26
  330. #define CHECKMARK_HEIGHT        11
  331. #define POPUP_WIDTH             15
  332. #define POPUP_HEIGHT            13
  333. #define ARROW_UP_WIDTH          16
  334. #define ARROW_UP_HEIGHT         9
  335. #define ARROW_DOWN_WIDTH        16
  336. #define ARROW_DOWN_HEIGHT       9
  337. #define ARROW_LEFT_WIDTH        10
  338. #define ARROW_LEFT_HEIGHT       12
  339. #define ARROW_RIGHT_WIDTH       10
  340. #define ARROW_RIGHT_HEIGHT      12
  341.  
  342. /*****************************************************************************
  343.  *
  344.  *      "baseclass" - BOOPSI base gadget.
  345.  *
  346.  *      This is a very important BGUI gadget class. All other gadget classes
  347.  *      are sub-classed from this class. It will handle stuff like online
  348.  *      help, notification, labels and frames etc. If you want to write a
  349.  *      gadget class for BGUI be sure to subclass it from this class. That
  350.  *      way your class will automatically inherit the same features.
  351.  */
  352. #define BT_HelpFile                     (BGUI_TB+241)   /* IS--- */
  353. #define BT_HelpNode                     (BGUI_TB+242)   /* IS--- */
  354. #define BT_HelpLine                     (BGUI_TB+243)   /* IS--- */
  355. #define BT_Inhibit                      (BGUI_TB+244)   /* PRIVATE! */
  356. #define BT_HitBox                       (BGUI_TB+245)   /* --G-- */
  357. #define BT_LabelObject                  (BGUI_TB+246)   /* -SG-- */
  358. #define BT_FrameObject                  (BGUI_TB+247)   /* -SG-- */
  359. #define BT_TextAttr                     (BGUI_TB+248)   /* -S--- */
  360. #define BT_NoRecessed                   (BGUI_TB+249)   /* -S--- */
  361. #define BT_LabelClick                   (BGUI_TB+250)   /* IS--- */
  362. #define BT_HelpText                     (BGUI_TB+251)   /* IS--- */
  363.  
  364. /* BGUI_TB+252 until BGUI_TB+320 reserved. */
  365.  
  366. /* New methods */
  367. #define BASE_ADDMAP                     (BGUI_MB+41)
  368.  
  369. /* Add an object to the maplist notification list. */
  370. struct bmAddMap {
  371.         ULONG                   MethodID;
  372.         Object                 *bam_Object;
  373.         struct TagItem         *bam_MapList;
  374. };
  375.  
  376. #define BASE_ADDCONDITIONAL             (BGUI_MB+42)
  377.  
  378. /* Add an object to the conditional notification list. */
  379. struct bmAddConditional {
  380.         ULONG                   MethodID;
  381.         Object                 *bac_Object;
  382.         struct TagItem          bac_Condition;
  383.         struct TagItem          bac_TRUE;
  384.         struct TagItem          bac_FALSE;
  385. };
  386.  
  387. #define BASE_ADDMETHOD                  (BGUI_MB+43)
  388.  
  389. /* Add an object to the method notification list. */
  390. struct bmAddMethod {
  391.         ULONG                   MethodID;
  392.         Object                 *bam_Object;
  393.         ULONG                   bam_Flags;
  394.         ULONG                   bam_Size;
  395.         ULONG                   bam_MethodID;
  396. };
  397.  
  398. #define BAMF_NO_GINFO           (1<<0)  /* Do not send GadgetInfo. */
  399. #define BAMF_NO_INTERIM         (1<<1)  /* Skip interim messages.  */
  400.  
  401. #define BASE_REMMAP                     (BGUI_MB+44)
  402. #define BASE_REMCONDITIONAL             (BGUI_MB+45)
  403. #define BASE_REMMETHOD                  (BGUI_MB+46)
  404.  
  405. /* Remove an object from a notification list. */
  406. struct bmRemove {
  407.         ULONG                   MethodID;
  408.         Object                 *bar_Object;
  409. };
  410.  
  411. #define BASE_SHOWHELP                   (BGUI_MB+47)
  412.  
  413. /* Show attached online-help. */
  414. struct bmShowHelp {
  415.         ULONG                   MethodID;
  416.         struct Window          *bsh_Window;
  417.         struct Requester       *bsh_Requester;
  418.         struct {
  419.                 WORD            X;
  420.                 WORD            Y;
  421.         }                       bsh_Mouse;
  422. };
  423.  
  424. #define BMHELP_OK               (0L)    /* OK, no problems.           */
  425. #define BMHELP_NOT_ME           (1L)    /* Mouse not over the object. */
  426. #define BMHELP_FAILURE          (2L)    /* Showing failed.            */
  427.  
  428. /*
  429.  *      The following three methods are used internally to
  430.  *      perform infinite-loop checking. Do not use them.
  431.  */
  432. #define BASE_SETLOOP                    (BGUI_MB+48)
  433. #define BASE_CLEARLOOP                  (BGUI_MB+49)
  434. #define BASE_CHECKLOOP                  (BGUI_MB+50)
  435.  
  436. /* PRIVATE! Hands off! */
  437. #define BASE_LEFTEXT                    (BGUI_MB+51)
  438.  
  439. struct bmLeftExt {
  440.         ULONG                   MethodID;
  441.         struct RastPort        *bmle_RPort;
  442.         UWORD                  *bmle_Extention;
  443. };
  444.  
  445. #define BASE_ADDHOOK                    (BGUI_MB+52)
  446.  
  447. /* Add a hook to the hook-notification list. */
  448. struct bmAddHook {
  449.         ULONG                   MethodID;
  450.         struct Hook            *bah_Hook;
  451. };
  452.  
  453. /* Remove a hook from the hook-notification list. */
  454. #define BASE_REMHOOK                    (BGUI_MB+53)
  455.  
  456. /* BGUI_MB+54 until BGUI_MB+80 reserved. */
  457.  
  458. /*****************************************************************************
  459.  *
  460.  *      "groupclass" - BOOPSI group gadget.
  461.  *
  462.  *      This class is the actual bgui.library layout engine. It will layout
  463.  *      all members in a specific area. Two group types are available,
  464.  *      horizontal and vertical groups.
  465.  */
  466. #define GROUP_Style                     (BGUI_TB+321)   /* I---- */
  467. #define GROUP_Spacing                   (BGUI_TB+322)   /* I---- */
  468. #define GROUP_HorizOffset               (BGUI_TB+323)   /* I---- */
  469. #define GROUP_VertOffset                (BGUI_TB+324)   /* I---- */
  470. #define GROUP_LeftOffset                (BGUI_TB+325)   /* I---- */
  471. #define GROUP_TopOffset                 (BGUI_TB+326)   /* I---- */
  472. #define GROUP_RightOffset               (BGUI_TB+327)   /* I---- */
  473. #define GROUP_BottomOffset              (BGUI_TB+328)   /* I---- */
  474. #define GROUP_Member                    (BGUI_TB+329)   /* I---- */
  475. #define GROUP_SpaceObject               (BGUI_TB+330)   /* I---- */
  476. #define GROUP_BackFill                  (BGUI_TB+331)   /* I---- */
  477. #define GROUP_EqualWidth                (BGUI_TB+332)   /* I---- */
  478. #define GROUP_EqualHeight               (BGUI_TB+333)   /* I---- */
  479.  
  480. /* BGUI_TB+334 until BGUI_TB+380 reserved. */
  481.  
  482. /* Object layout attributes. */
  483. #define LGO_FixWidth                    (BGUI_TB+381)
  484. #define LGO_FixHeight                   (BGUI_TB+382)
  485. #define LGO_Weight                      (BGUI_TB+383)
  486. #define LGO_FixMinWidth                 (BGUI_TB+384)
  487. #define LGO_FixMinHeight                (BGUI_TB+385)
  488. #define LGO_Align                       (BGUI_TB+386)
  489.  
  490. /* BGUI_TB+387 until BGUI_TB+400 reserved. */
  491.  
  492. /* Default object weight. */
  493. #define DEFAULT_WEIGHT                  (50L)
  494.  
  495. /* Group styles. */
  496. #define GRSTYLE_HORIZONTAL              (0L)
  497. #define GRSTYLE_VERTICAL                (1L)
  498.  
  499. /* New methods. */
  500. #define GRM_ADDMEMBER                   (BGUI_MB+81)
  501.  
  502. /* Add a member to the group. */
  503. struct grmAddMember {
  504.         ULONG                   MethodID;       /* GRM_ADDMEMBER            */
  505.         Object                 *grma_Member;    /* Object to add.           */
  506.         ULONG                   grma_Attr;      /* First of LGO attributes. */
  507. };
  508.  
  509. #define GRM_REMMEMBER                   (BGUI_MB+82)
  510.  
  511. /* Remove a member from the group. */
  512. struct grmRemMember {
  513.         ULONG                   MethodID;       /* GRM_REMMEMBER            */
  514.         Object                 *grmr_Member;    /* Object to remove.        */
  515. };
  516.  
  517. #define GRM_DIMENSIONS                  (BGUI_MB+83)
  518.  
  519. /* Ask an object it's dimensions information. */
  520. struct grmDimensions {
  521.         ULONG                   MethodID;       /* GRM_DIMENSIONS           */
  522.         struct GadgetInfo      *grmd_GInfo;     /* Can be NULL!             */
  523.         struct RastPort        *grmd_RPort;     /* Ready for calculations.  */
  524.         struct {
  525.                 UWORD          *Width;
  526.                 UWORD          *Height;
  527.         }                       grmd_MinSize;   /* Storage for dimensions.  */
  528.         ULONG                   grmd_Flags;     /* See below.               */
  529. };
  530.  
  531. /* Flags */
  532. #define GDIMF_NO_FRAME          (1<<0)  /* Don't take frame width/height
  533.                                            into consideration.              */
  534.  
  535. #define GRM_ADDSPACEMEMBER              (BGUI_MB+84)
  536.  
  537. /* Add a weight controlled spacing member. */
  538. struct grmAddSpaceMember {
  539.         ULONG                   MethodID;       /* GRM_ADDSPACEMEMBER       */
  540.         ULONG                   grms_Weight;    /* Object weight.           */
  541. };
  542.  
  543. #define GRM_INSERTMEMBER                (BGUI_MB+85)
  544.  
  545. /* Insert a member in the group. */
  546. struct grmInsertMember {
  547.         ULONG                   MethodID;       /* GRM_INSERTMEMBER         */
  548.         Object                 *grmi_Member;    /* Member to insert.        */
  549.         Object                 *grmi_Pred;      /* Insert after this member */
  550.         ULONG                   grmi_Attr;      /* First of LGO attributes. */
  551. };
  552.  
  553. /* BGUI_MB+86 until BGUI_MB+120 reserved. */
  554.  
  555. /*****************************************************************************
  556.  *
  557.  *      "buttonclass" - BOOPSI button gadget.
  558.  *
  559.  *      GadTools style button gadget.
  560.  *
  561.  *      GA_Selected has been made gettable (OM_GET) for toggle-select
  562.  *      buttons. (ISGNU)
  563.  */
  564. #define BUTTON_ScaleMinWidth            (BGUI_TB+401)   /* PRIVATE! */
  565. #define BUTTON_ScaleMinHeight           (BGUI_TB+402)   /* PRIVATE! */
  566.  
  567. /* BGUI_TB+403 until BGUI_TB+480 reserved. */
  568. /* BGUI_MB+121 until BGUI_MB+160 reserved. */
  569.  
  570. /*****************************************************************************
  571.  *
  572.  *      "checkboxclass" - BOOPSI checkbox gadget.
  573.  *
  574.  *      GadTools style checkbox gadget.
  575.  *
  576.  *      GA_Selected has been made gettable (OM_GET). (ISGNU)
  577.  */
  578.  
  579. /* BGUI_TB+481 until BGUI_TB+560 reserved. */
  580. /* BGUI_MB+161 until BGUI_MB+200 reserved. */
  581.  
  582. /*****************************************************************************
  583.  *
  584.  *      "cycleclass" - BOOPSI cycle gadget.
  585.  *
  586.  *      GadTools style cycle gadget.
  587.  */
  588. #define CYC_Labels                      (BGUI_TB+561)   /* I---- */
  589. #define CYC_Active                      (BGUI_TB+562)   /* ISGNU */
  590. #define CYC_Popup                       (BGUI_TB+563)   /* I---- */
  591.  
  592. /* BGUI_TB+564 until BGUI_TB+640 reserved. */
  593. /* BGUI_MB+201 until BGUI_MB+240 reserved. */
  594.  
  595. /*****************************************************************************
  596.  *
  597.  *      "infoclass" - BOOPSI information gadget.
  598.  *
  599.  *      Text gadget which supports different colors, text styles and
  600.  *      text positioning.
  601.  */
  602. #define INFO_TextFormat                 (BGUI_TB+641)   /* IS--U */
  603. #define INFO_Args                       (BGUI_TB+642)   /* IS--U */
  604. #define INFO_MinLines                   (BGUI_TB+643)   /* I---- */
  605. #define INFO_FixTextWidth               (BGUI_TB+644)   /* I---- */
  606. #define INFO_HorizOffset                (BGUI_TB+645)   /* I---- */
  607. #define INFO_VertOffset                 (BGUI_TB+646)   /* I---- */
  608.  
  609. /* Command sequences. */
  610. #define ISEQ_B                          "\33b"  /* Bold          */
  611. #define ISEQ_I                          "\33i"  /* Italics       */
  612. #define ISEQ_U                          "\33u"  /* Underlined    */
  613. #define ISEQ_N                          "\33n"  /* Normal        */
  614. #define ISEQ_C                          "\33c"  /* Centered      */
  615. #define ISEQ_R                          "\33r"  /* Right         */
  616. #define ISEQ_L                          "\33l"  /* Left          */
  617. #define ISEQ_TEXT                       "\33d2" /* TEXTPEN       */
  618. #define ISEQ_SHINE                      "\33d3" /* SHINEPEN      */
  619. #define ISEQ_SHADOW                     "\33d4" /* SHADOWPEN     */
  620. #define ISEQ_FILL                       "\33d5" /* FILLPEN       */
  621. #define ISEQ_FILLTEXT                   "\33d6" /* FILLTEXTPEN   */
  622. #define ISEQ_HIGHLIGHT                  "\33d8" /* HIGHLIGHTPEN  */
  623.  
  624. /* BGUI_TB+645 until BGUI_TB+720 reserved. */
  625. /* BGUI_MB+241 until BGUI_MB+280 reserved. */
  626.  
  627. /*****************************************************************************
  628.  *
  629.  *      "listviewclass" - BOOPSI listview gadget.
  630.  *
  631.  *      GadTools style listview gadget.
  632.  */
  633. #define LISTV_ResourceHook              (BGUI_TB+721)   /* I---- */
  634. #define LISTV_DisplayHook               (BGUI_TB+722)   /* I---- */
  635. #define LISTV_CompareHook               (BGUI_TB+723)   /* I---- */
  636. #define LISTV_Top                       (BGUI_TB+724)   /* ISG-U */
  637. #define LISTV_ListFont                  (BGUI_TB+725)   /* I-G-- */
  638. #define LISTV_ReadOnly                  (BGUI_TB+726)   /* I---- */
  639. #define LISTV_MultiSelect               (BGUI_TB+727)   /* I---- */
  640. #define LISTV_EntryArray                (BGUI_TB+728)   /* I---- */
  641. #define LISTV_Select                    (BGUI_TB+729)   /* -S--U */
  642. #define LISTV_MakeVisible               (BGUI_TB+730)   /* -S--U */
  643. #define LISTV_Entry                     (BGUI_TB+731)   /* ---N- */
  644. #define LISTV_SortEntryArray            (BGUI_TB+732)   /* I---- */
  645. #define LISTV_EntryNumber               (BGUI_TB+733)   /* ---N- */
  646. #define LISTV_TitleHook                 (BGUI_TB+734)   /* I---- */
  647. #define LISTV_LastClicked               (BGUI_TB+735)   /* --G-- */
  648. #define LISTV_ThinFrames                (BGUI_TB+736)   /* I---- */
  649.  
  650. /* BGUI_TB+737 until BGUI_TB+800 reserved. */
  651.  
  652. /*
  653.  *      The LISTV_ResourceHook is called as follows:
  654.  *
  655.  *      rc = hookFunc( REG(A0) struct Hook              *hook,
  656.  *                     REG(A2) Object                   *lv_object,
  657.  *                     REG(A1) struct lvResource        *message );
  658.  */
  659. struct lvResource {
  660.         UWORD                   lvr_Command;
  661.         APTR                    lvr_Entry;
  662. };
  663.  
  664. /* LISTV_ResourceHook commands. */
  665. #define LVRC_MAKE               1       /* Built the entry. */
  666. #define LVRC_KILL               2       /* Kill the entry.  */
  667.  
  668. /*
  669.  *      The LISTV_DisplayHook and the LISTV_TitleHook are called as follows:
  670.  *
  671.  *      rc = hookFunc( REG(A0) struct Hook             *hook,
  672.  *                     REG(A2) Object                  *lv_object,
  673.  *                     REG(A1) struct lvRender         *message );
  674.  */
  675. struct lvRender {
  676.         struct RastPort        *lvr_RPort;      /* RastPort to render in.  */
  677.         struct DrawInfo        *lvr_DrawInfo;   /* All you need to render. */
  678.         struct Rectangle        lvr_Bounds;     /* Bounds to render in.    */
  679.         APTR                    lvr_Entry;      /* Entry to render.        */
  680.         UWORD                   lvr_State;      /* See below.              */
  681.         UWORD                   lvr_Flags;      /* None defined yet.       */
  682. };
  683.  
  684. /* Rendering states. */
  685. #define LVRS_NORMAL             0
  686. #define LVRS_SELECTED           1
  687. #define LVRS_NORMAL_DISABLED    2
  688. #define LVRS_SELECTED_DISABLED  3
  689.  
  690. /*
  691.  *      The LISTV_CompareHook is called as follows:
  692.  *
  693.  *      rc = hookFunc( REG(A0) struct Hook              *hook,
  694.  *                     REG(A2) Object                   *lv_object,
  695.  *                     REG(A1) struct lvCompare         *message );
  696.  */
  697. struct lvCompare {
  698.         APTR                    lvc_EntryA;     /* First entry.  */
  699.         APTR                    lvc_EntryB;     /* Second entry. */
  700. };
  701.  
  702. /* New Methods. */
  703. #define LVM_ADDENTRIES                  (BGUI_MB+281)
  704.  
  705. /* Add listview entries. */
  706. struct lvmAddEntries {
  707.         ULONG                   MethodID;       /* LVM_ADDENTRIES  */
  708.         struct GadgetInfo      *lvma_GInfo;     /* GadgetInfo      */
  709.         APTR                   *lvma_Entries;   /* Entries to add. */
  710.         ULONG                   lvma_How;       /* How to add it.  */
  711. };
  712.  
  713. /* Where to add the entries. */
  714. #define LVAP_HEAD               1
  715. #define LVAP_TAIL               2
  716. #define LVAP_SORTED             3
  717.  
  718. #define LVM_ADDSINGLE                   (BGUI_MB+282)
  719.  
  720. /* Add a single entry. */
  721. struct lvmAddSingle {
  722.         ULONG                   MethodID;       /* LVM_ADDSINGLE */
  723.         struct GadgetInfo      *lvma_GInfo;     /* GadgetInfo    */
  724.         APTR                    lvma_Entry;     /* Entry to add. */
  725.         ULONG                   lvma_How;       /* See above.    */
  726.         ULONG                   lvma_Flags;     /* See below.    */
  727. };
  728.  
  729. /* Flags. */
  730. #define LVASF_MAKEVISIBLE       (1<<0)  /* Make entry visible. */
  731. #define LVASF_SELECT            (1<<1)  /* Select entry.       */
  732.  
  733. /* Clear the entire list. ( Uses a lvmCommand structure as defined below.) */
  734. #define LVM_CLEAR                       (BGUI_MB+283)
  735.  
  736. #define LVM_FIRSTENTRY                  (BGUI_MB+284)
  737. #define LVM_LASTENTRY                   (BGUI_MB+285)
  738. #define LVM_NEXTENTRY                   (BGUI_MB+286)
  739. #define LVM_PREVENTRY                   (BGUI_MB+287)
  740.  
  741. /* Get an entry. */
  742. struct lvmGetEntry {
  743.         ULONG                   MethodID;       /* Any of the above. */
  744.         APTR                    lvmg_Previous;  /* Previous entry.   */
  745.         ULONG                   lvmg_Flags;     /* See below.        */
  746. };
  747.  
  748. #define LVGEF_SELECTED          (1<<0)  /* Get selected entries. */
  749.  
  750. #define LVM_REMENTRY                    (BGUI_MB+288)
  751.  
  752. /* Remove an entry. */
  753. struct lvmRemEntry {
  754.         ULONG                   MethodID;       /* LVM_REMENTRY      */
  755.         struct GadgetInfo      *lvmr_GInfo;     /* GadgetInfo        */
  756.         APTR                    lvmr_Entry;     /* Entry to remove.  */
  757. };
  758.  
  759. #define LVM_REFRESH                     (BGUI_MB+289)
  760. #define LVM_SORT                        (BGUI_MB+290)
  761. #define LVM_LOCKLIST                    (BGUI_MB+291)
  762. #define LVM_UNLOCKLIST                  (BGUI_MB+292)
  763.  
  764. /* Refresh/Sort list. */
  765. struct lvmCommand {
  766.         ULONG                   MethodID;       /* LVM_REFRESH       */
  767.         struct GadgetInfo      *lvmc_GInfo;     /* GadgetInfo        */
  768. };
  769.  
  770. /* BGUI_MB+293 until BGUI_MB+320 reserved. */
  771.  
  772. /*****************************************************************************
  773.  *
  774.  *      "progressclass" - BOOPSI progression gadget.
  775.  *
  776.  *      Progression indicator fuel guage.
  777.  */
  778. #define PROGRESS_Min                    (BGUI_TB+801)   /* IS--- */
  779. #define PROGRESS_Max                    (BGUI_TB+802)   /* IS--- */
  780. #define PROGRESS_Done                   (BGUI_TB+803)   /* ISGNU */
  781. #define PROGRESS_Vertical               (BGUI_TB+804)   /* I---- */
  782. #define PROGRESS_Divisor                (BGUI_TB+805)   /* I---- */
  783.  
  784. /* BGUI_TB+806 until BGUI_TB+880 reserved. */
  785. /* BGUI_MB+321 until BGUI_MB+360 reserved. */
  786.  
  787. /*****************************************************************************
  788.  *
  789.  *      "propclass" - BOOPSI proportional gadget.
  790.  *
  791.  *      GadTools style scroller gadget.
  792.  */
  793. #define PGA_Arrows                      (BGUI_TB+881)   /* I---- */
  794. #define PGA_ArrowSize                   (BGUI_TB+882)   /* I---- */
  795. #define PGA_DontTarget                  (BGUI_TB+883)   /* PRIVATE! */
  796. #define PGA_ThinFrame                   (BGUI_TB+884)   /* I---- */
  797. #define PGA_XenFrame                    (BGUI_TB+885)   /* I---- */
  798.  
  799. /* BGUI_TB+886 until BGUI_TB+960 reserved. */
  800. /* BGUI_MB+361 until BGUI_MB+400 reserved. */
  801.  
  802. /*****************************************************************************
  803.  *
  804.  *      "stringclass" - BOOPSI string gadget.
  805.  *
  806.  *      GadTools style string/integer gadget.
  807.  */
  808. #define STRINGA_Tabbed                  (BGUI_TB+961)   /* PRIVATE! */
  809. #define STRINGA_ShiftTabbed             (BGUI_TB+962)   /* PRIVATE! */
  810.  
  811. /* BGUI_TB+963 until BGUI_TB+1040 reserved. */
  812. /* BGUI_MB+401 until BGUI_MB+440 reserved. */
  813.  
  814. /*****************************************************************************
  815.  *
  816.  *      RESERVED.
  817.  */
  818.  
  819. /* BGUI_TB+1041 until BGUI_TB+1120 reserved. */
  820. /* BGUI_MB+441 until BGUI_MB+480 reserved. */
  821.  
  822. /*****************************************************************************
  823.  *
  824.  *      "pageclass" - BOOPSI paging gadget.
  825.  *
  826.  *      Gadget to handle pages of gadgets.
  827.  */
  828. #define PAGE_Active                     (BGUI_TB+1121)  /* ISGNU */
  829. #define PAGE_Member                     (BGUI_TB+1122)  /* I---- */
  830.  
  831. /* BGUI_TB+1123 until BGUI_TB+1200 reserved. */
  832. /* BGUI_MB+481 until BGUI_MB+520 reserved. */
  833.  
  834. /*****************************************************************************
  835.  *
  836.  *      "mxclass" - BOOPSI mx gadget.
  837.  *
  838.  *      GadTools style mx gadget.
  839.  */
  840. #define MX_Labels                       (BGUI_TB+1201)  /* I---- */
  841. #define MX_Active                       (BGUI_TB+1202)  /* ISGNU */
  842. #define MX_LabelPlace                   (BGUI_TB+1203)  /* I---- */
  843. #define MX_DisableButton                (BGUI_TB+1204)  /* IS--U */
  844. #define MX_EnableButton                 (BGUI_TB+1205)  /* IS--U */
  845.  
  846. /* BGUI_TB+1206 until BGUI_TB+1280 reserved. */
  847. /* BGUI_MB+521 until BGUI_MB+560 reserved. */
  848.  
  849. /*****************************************************************************
  850.  *
  851.  *      "sliderclass" - BOOPSI slider gadget.
  852.  *
  853.  *      GadTools style slider gadget.
  854.  */
  855. #define SLIDER_Min                              (BGUI_TB+1281)  /* I---- */
  856. #define SLIDER_Max                              (BGUI_TB+1282)  /* I---- */
  857. #define SLIDER_Level                            (BGUI_TB+1283)  /* ISGNU */
  858. #define SLIDER_ThinFrame                        (BGUI_TB+1284)  /* I---- */
  859. #define SLIDER_XenFrame                         (BGUI_TB+1285)  /* I---- */
  860.  
  861. /* BGUI_TB+1286 until BGUI_TB+1360 reserved. */
  862. /* BGUI_MB+561 until BGUI_MB+600 reserved. */
  863.  
  864. /*****************************************************************************
  865.  *
  866.  *      "indicatorclass" - BOOPSI indicator gadget.
  867.  *
  868.  *      Textual level indicator gadget.
  869.  */
  870. #define INDIC_Min                       (BGUI_TB+1361)  /* I---- */
  871. #define INDIC_Max                       (BGUI_TB+1362)  /* I---- */
  872. #define INDIC_Level                     (BGUI_TB+1363)  /* IS--U */
  873. #define INDIC_FormatString              (BGUI_TB+1364)  /* I---- */
  874. #define INDIC_Justification             (BGUI_TB+1365)  /* I---- */
  875.  
  876. /* Justification */
  877. #define IDJ_LEFT                (0L)
  878. #define IDJ_CENTER              (1L)
  879. #define IDJ_RIGHT               (2L)
  880.  
  881. /* BGUI_TB+1366 until BGUI_TB+1440 reserved. */
  882.  
  883. /*****************************************************************************
  884.  *
  885.  *      "externalclass" - BGUI external class interface.
  886.  */
  887. #define EXT_Class                       (BGUI_TB+1441)  /* I---- */
  888. #define EXT_ClassID                     (BGUI_TB+1442)  /* I---- */
  889. #define EXT_MinWidth                    (BGUI_TB+1443)  /* I---- */
  890. #define EXT_MinHeight                   (BGUI_TB+1444)  /* I---- */
  891. #define EXT_TrackAttr                   (BGUI_TB+1445)  /* I---- */
  892. #define EXT_Object                      (BGUI_TB+1446)  /* --G-- */
  893. #define EXT_NoRebuild                   (BGUI_TB+1447)  /* I---- */
  894.  
  895. /* BGUI_TB+1448 until BGUI_TB+1500 reserved. */
  896.  
  897. /*****************************************************************************
  898.  *
  899.  *      "seperatorclass" - BOOPSI seperator class.
  900.  */
  901. #define SEP_Horiz                       (BGUI_TB+1501)  /* I---- */
  902. #define SEP_Title                       (BGUI_TB+1502)  /* I---- */
  903. #define SEP_Thin                        (BGUI_TB+1503)  /* I---- */
  904. #define SEP_Highlight                   (BGUI_TB+1504)  /* I---- */
  905. #define SEP_CenterTitle                 (BGUI_TB+1505)  /* I---- */
  906.  
  907. /* BGUI_TB+1506 until BGUI_TB+1760 reserved. */
  908.  
  909. /*****************************************************************************
  910.  *
  911.  *      "windowclass" - BOOPSI window class.
  912.  *
  913.  *      This class creates and maintains an intuition window.
  914.  */
  915. #define WINDOW_Position                 (BGUI_TB+1761)  /* I---- */
  916. #define WINDOW_ScaleWidth               (BGUI_TB+1762)  /* I---- */
  917. #define WINDOW_ScaleHeight              (BGUI_TB+1763)  /* I---- */
  918. #define WINDOW_LockWidth                (BGUI_TB+1764)  /* I---- */
  919. #define WINDOW_LockHeight               (BGUI_TB+1765)  /* I---- */
  920. #define WINDOW_PosRelBox                (BGUI_TB+1766)  /* I---- */
  921. #define WINDOW_Bounds                   (BGUI_TB+1767)  /* ISG-- */
  922. /* BGUI_TB+1768 until BGUI_TB+1670 reserved. */
  923. #define WINDOW_DragBar                  (BGUI_TB+1771)  /* I---- */
  924. #define WINDOW_SizeGadget               (BGUI_TB+1772)  /* I---- */
  925. #define WINDOW_CloseGadget              (BGUI_TB+1773)  /* I---- */
  926. #define WINDOW_DepthGadget              (BGUI_TB+1774)  /* I---- */
  927. #define WINDOW_SizeBottom               (BGUI_TB+1775)  /* I---- */
  928. #define WINDOW_SizeRight                (BGUI_TB+1776)  /* I---- */
  929. #define WINDOW_Activate                 (BGUI_TB+1777)  /* I---- */
  930. #define WINDOW_RMBTrap                  (BGUI_TB+1778)  /* I---- */
  931. #define WINDOW_SmartRefresh             (BGUI_TB+1779)  /* I---- */
  932. #define WINDOW_ReportMouse              (BGUI_TB+1780)  /* I---- */
  933. /* BGUI_TB+1781 until BGUI_TB+1790 reserved. */
  934. #define WINDOW_IDCMP                    (BGUI_TB+1791)  /* I---- */
  935. #define WINDOW_SharedPort               (BGUI_TB+1792)  /* I---- */
  936. #define WINDOW_Title                    (BGUI_TB+1793)  /* IS--U */
  937. #define WINDOW_ScreenTitle              (BGUI_TB+1794)  /* IS--U */
  938. #define WINDOW_MenuStrip                (BGUI_TB+1795)  /* I-G-- */
  939. #define WINDOW_MasterGroup              (BGUI_TB+1796)  /* I---- */
  940. #define WINDOW_Screen                   (BGUI_TB+1797)  /* IS--- */
  941. #define WINDOW_PubScreenName            (BGUI_TB+1798)  /* IS--- */
  942. #define WINDOW_UserPort                 (BGUI_TB+1799)  /* --G-- */
  943. #define WINDOW_SigMask                  (BGUI_TB+1800)  /* --G-- */
  944. #define WINDOW_IDCMPHook                (BGUI_TB+1801)  /* I---- */
  945. #define WINDOW_VerifyHook               (BGUI_TB+1802)  /* I---- */
  946. #define WINDOW_IDCMPHookBits            (BGUI_TB+1803)  /* I---- */
  947. #define WINDOW_VerifyHookBits           (BGUI_TB+1804)  /* I---- */
  948. #define WINDOW_Font                     (BGUI_TB+1805)  /* I---- */
  949. #define WINDOW_FallBackFont             (BGUI_TB+1806)  /* I---- */
  950. #define WINDOW_HelpFile                 (BGUI_TB+1807)  /* IS--- */
  951. #define WINDOW_HelpNode                 (BGUI_TB+1808)  /* IS--- */
  952. #define WINDOW_HelpLine                 (BGUI_TB+1809)  /* IS--- */
  953. #define WINDOW_AppWindow                (BGUI_TB+1810)  /* I---- */
  954. #define WINDOW_AppMask                  (BGUI_TB+1811)  /* --G-- */
  955. #define WINDOW_UniqueID                 (BGUI_TB+1812)  /* I---- */
  956. #define WINDOW_Window                   (BGUI_TB+1813)  /* --G-- */
  957. #define WINDOW_HelpText                 (BGUI_TB+1814)  /* IS--- */
  958.  
  959. /* BGUI_TB+1815 until BGUI_TB+1860 reserved. */
  960.  
  961. /* Possible window positions. */
  962. #define POS_CENTERSCREEN        (0L)    /* Center on the screen             */
  963. #define POS_CENTERMOUSE         (1L)    /* Center under the mouse           */
  964. #define POS_TOPLEFT             (2L)    /* Top-left of the screen           */
  965.  
  966. /* New methods */
  967.  
  968. #define WM_OPEN         (BGUI_MB+601)   /* Open the window                  */
  969. #define WM_CLOSE        (BGUI_MB+602)   /* Close the window                 */
  970. #define WM_SLEEP        (BGUI_MB+603)   /* Put the window to sleep          */
  971. #define WM_WAKEUP       (BGUI_MB+604)   /* Wake the window up               */
  972. #define WM_HANDLEIDCMP  (BGUI_MB+605)   /* Call the IDCMP handler           */
  973.  
  974. /* Pre-defined WM_HANDLEIDCMP return codes. */
  975. #define WMHI_CLOSEWINDOW        (1<<16) /* The close gadget was clicked     */
  976. #define WMHI_NOMORE             (2<<16) /* No more messages                 */
  977. #define WMHI_INACTIVE           (3<<16) /* The window was de-activated      */
  978. #define WMHI_ACTIVE             (4<<16) /* The window was activated         */
  979. #define WMHI_IGNORE             (~0L)   /* Like it say's: ignore            */
  980.  
  981. #define WM_GADGETKEY                    (BGUI_MB+606)
  982.  
  983. /* Add a hotkey to a gadget. */
  984. struct wmGadgetKey {
  985.         ULONG              MethodID;       /* WM_GADGETKEY                  */
  986.         struct Requester  *wmgk_Requester; /* When used in a requester      */
  987.         Object            *wmgk_Object;    /* Object to activate            */
  988.         STRPTR             wmgk_Key;       /* Key that triggers activ.      */
  989. };
  990.  
  991. #define WM_KEYACTIVE                    (BGUI_MB+607)
  992. #define WM_KEYINPUT                     (BGUI_MB+608)
  993.  
  994. /* Send with the WM_KEYACTIVE and WM_KEYINPUT methods. */
  995. struct wmKeyInput {
  996.         ULONG              MethodID;     /* WM_KEYACTIVE/WM_KEYINPUT        */
  997.         struct GadgetInfo *wmki_GInfo;   /* GadgetInfo                      */
  998.         struct InputEvent *wmki_IEvent;  /* Input event                     */
  999.         ULONG             *wmki_ID;      /* Storage for the object ID       */
  1000.         STRPTR             wmki_Key;     /* Key that triggered activation.  */
  1001. };
  1002.  
  1003. /* Possible WM_KEYACTIVE and WM_KEYINPUT return codes. */
  1004. #define WMKF_MEACTIVE           (0L)     /* Object went active.             */
  1005. #define WMKF_CANCEL             (1<<0)   /* Key activation canceled.        */
  1006. #define WMKF_VERIFY             (1<<1)   /* Key activation confirmed        */
  1007. #define WMKF_ACTIVATE           (1<<2)   /* ActivateGadget() object         */
  1008.  
  1009. #define WM_KEYINACTIVE                  (BGUI_MB+609)
  1010.  
  1011. /* De-activate a key session. */
  1012. struct wmKeyInActive {
  1013.         ULONG              MethodID;    /* WM_KEYINACTIVE                   */
  1014.         struct GadgetInfo *wmkia_GInfo; /* GadgetInfo                       */
  1015. };
  1016.  
  1017. #define WM_DISABLEMENU                  (BGUI_MB+610)
  1018. #define WM_CHECKITEM                    (BGUI_MB+611)
  1019.  
  1020. /* Disable/Enable a menu or Set/Clear a checkit item. */
  1021. struct wmMenuAction {
  1022.         ULONG              MethodID;    /* WM_DISABLEMENU/WM_CHECKITEM      */
  1023.         ULONG              wmma_MenuID; /* Menu it's ID                     */
  1024.         ULONG              wmma_Set;    /* TRUE = set, FALSE = clear        */
  1025. };
  1026.  
  1027. #define WM_MENUDISABLED                 (BGUI_MB+612)
  1028. #define WM_ITEMCHECKED                  (BGUI_MB+613)
  1029.  
  1030. struct wmMenuQuery {
  1031.         ULONG              MethodID;    /* WM_MENUDISABLED/WM_ITEMCHECKED   */
  1032.         ULONG              wmmq_MenuID; /* Menu it's ID                     */
  1033. };
  1034.  
  1035. #define WM_TABCYCLE_ORDER               (BGUI_MB+614)
  1036.  
  1037. /* Set the tab-cycling order. */
  1038. struct wmTabCycleOrder {
  1039.         ULONG              MethodID;    /* WM_TABCYCLE_ORDER                */
  1040.         Object            *wtco_Object1;
  1041.         /* Object         *wtco_Object2; */
  1042.         /* ...  */
  1043.         /* NULL */
  1044. };
  1045.  
  1046. /* Obtain the app message. */
  1047. #define WM_GETAPPMSG                    (BGUI_MB+615)
  1048.  
  1049. #define WM_ADDUPDATE                    (BGUI_MB+616)
  1050.  
  1051. /* Add object to the update notification list. */
  1052. struct wmAddUpdate {
  1053.         ULONG              MethodID;            /* WM_ADDUPDATE             */
  1054.         ULONG              wmau_SourceID;       /* ID of source object.     */
  1055.         Object            *wmau_Target;         /* Target object.           */
  1056.         struct TagItem    *wmau_MapList;        /* Attribute map-list.      */
  1057. };
  1058.  
  1059. /* BGUI_MB+617 until BGUI_MB+660 reserved. */
  1060.  
  1061. /*****************************************************************************
  1062.  *
  1063.  *      "commodityclass" - BOOPSI commodity class.
  1064.  */
  1065. #define COMM_Name                       (BGUI_TB+1861)  /* I---- */
  1066. #define COMM_Title                      (BGUI_TB+1862)  /* I---- */
  1067. #define COMM_Description                (BGUI_TB+1863)  /* I---- */
  1068. #define COMM_Unique                     (BGUI_TB+1864)  /* I---- */
  1069. #define COMM_Notify                     (BGUI_TB+1865)  /* I---- */
  1070. #define COMM_ShowHide                   (BGUI_TB+1866)  /* I---- */
  1071. #define COMM_Priority                   (BGUI_TB+1867)  /* I---- */
  1072. #define COMM_SigMask                    (BGUI_TB+1868)  /* --G-- */
  1073. #define COMM_ErrorCode                  (BGUI_TB+1869)  /* --G-- */
  1074.  
  1075. /* BGUI_TB+1870 until BGUI_TB+1940 reserved. */
  1076.  
  1077. /* New Methods. */
  1078.  
  1079. #define CM_ADDHOTKEY                    (BGUI_MB+661)
  1080.  
  1081. /* Add a hot-key to the broker. */
  1082. struct cmAddHotkey {
  1083.         ULONG           MethodID;               /* CM_ADDHOTKEY             */
  1084.         STRPTR          cah_InputDescription;   /* Key input description.   */
  1085.         ULONG           cah_KeyID;              /* Key command ID.          */
  1086.         ULONG           cah_Flags;              /* See below.               */
  1087. };
  1088.  
  1089. /* Flags. */
  1090. #define CAHF_DISABLED   (1<<0)  /* The key is added but won't work.         */
  1091.  
  1092. #define CM_REMHOTKEY                    (BGUI_MB+662) /* Remove a key.      */
  1093. #define CM_DISABLEHOTKEY                (BGUI_MB+663) /* Disable a key.     */
  1094. #define CM_ENABLEHOTKEY                 (BGUI_MB+664) /* Enable a key.      */
  1095.  
  1096. /* Do a key command. */
  1097. struct cmDoKeyCommand {
  1098.         ULONG           MethodID;       /* See above.                       */
  1099.         ULONG           cdkc_KeyID;     /* ID of the key.                   */
  1100. };
  1101.  
  1102. #define CM_ENABLEBROKER                 (BGUI_MB+665) /* Enable broker.     */
  1103. #define CM_DISABLEBROKER                (BGUI_MB+666) /* Disable broker.    */
  1104.  
  1105. #define CM_MSGINFO                      (BGUI_MB+667)
  1106.  
  1107. /* Obtain info from a CxMsg. */
  1108. struct cmMsgInfo {
  1109.         ULONG           MethodID;       /* CM_MSGINFO                       */
  1110.         struct {
  1111.                 ULONG  *Type;           /* Storage for CxMsgType() result.  */
  1112.                 ULONG  *ID;             /* Storage for CxMsgID() result.    */
  1113.                 ULONG  *Data;           /* Storage for CxMsgData() result.  */
  1114.         }               cmi_Info;
  1115. };
  1116.  
  1117. /* Possible CM_MSGINFO return codes. */
  1118. #define CMMI_NOMORE             (~0L)   /* No more messages.                */
  1119.  
  1120. /* BGUI_MB+668 until BGUI_MB+700 reserved. */
  1121.  
  1122. /*
  1123.  *      CM_ADDHOTKEY error codes obtainable using
  1124.  *      the COMM_ErrorCode attribute.
  1125.  */
  1126. #define CMERR_OK                (0L)    /* OK. No problems.                 */
  1127. #define CMERR_NO_MEMORY         (1L)    /* Out of memory.                   */
  1128. #define CMERR_KEYID_IN_USE      (2L)    /* Key ID already used.             */
  1129. #define CMERR_KEY_CREATION      (3L)    /* Key creation failure.            */
  1130. #define CMERR_CXOBJERROR        (4L)    /* CxObjError() reported failure.   */
  1131.  
  1132. /*****************************************************************************
  1133.  *
  1134.  *      "filereqclass.c" - BOOPSI Asl filerequester class.
  1135.  */
  1136. #define FRQ_Drawer                      (BGUI_TB+1941)  /* --G-- */
  1137. #define FRQ_File                        (BGUI_TB+1942)  /* --G-- */
  1138. #define FRQ_Pattern                     (BGUI_TB+1943)  /* --G-- */
  1139. #define FRQ_Path                        (BGUI_TB+1944)  /* --G-- */
  1140. #define FRQ_Left                        (BGUI_TB+1945)  /* --G-- */
  1141. #define FRQ_Top                         (BGUI_TB+1946)  /* --G-- */
  1142. #define FRQ_Width                       (BGUI_TB+1947)  /* --G-- */
  1143. #define FRQ_Height                      (BGUI_TB+1948)  /* --G-- */
  1144. /*
  1145.  *      In addition to the above defined attributes are all
  1146.  *      ASL filerequester attributes ISG-U.
  1147.  */
  1148.  
  1149. /* BGUI_TB+1949 until BGUI_TB+2020 reserved. */
  1150.  
  1151. /*
  1152.  *      Error codes which the SetAttrs() and DoMethod()
  1153.  *      call's can return.
  1154.  */
  1155. #define FRQ_OK                  (0L)    /* OK. No problems.                 */
  1156. #define FRQ_CANCEL              (1L)    /* The requester was cancelled.     */
  1157. #define FRQ_ERROR_NO_MEM        (2L)    /* Out of memory.                   */
  1158. #define FRQ_ERROR_NO_FREQ       (3L)    /* Unable to allocate a requester.  */
  1159.  
  1160. /* New Methods */
  1161.  
  1162. #define FRM_DOREQUEST                   (BGUI_MB+701)   /* Show Requester.  */
  1163.  
  1164. /* BGUI_MB+702 until BGUI_MB+740 reserved. */
  1165.  
  1166. #endif /* LIBRARIES_BGUI_H */
  1167.